Visual Basic (Declaration) | |
---|---|
Public Overloads Function AreasAndLengthsTaskAsync( _ ByVal graphics As IList(Of Graphic), _ ByVal lengthUnit As Nullable(Of LinearUnit), _ ByVal areaUnit As Nullable(Of LinearUnit), _ ByVal cancellationToken As CancellationToken _ ) As Task(Of AreasAndLengthsResult) |
C# | |
---|---|
public Task<AreasAndLengthsResult> AreasAndLengthsTaskAsync( IList<Graphic> graphics, Nullable<LinearUnit> lengthUnit, Nullable<LinearUnit> areaUnit, CancellationToken cancellationToken ) |
Parameters
- graphics
- The graphics used to calculate areas and lengths.
- lengthUnit
- The length unit in which perimeters of polygons will be calculated. If unit is not specified, the units are derived from the spatial reference of the first geometry.
- areaUnit
- The area unit in which areas of polygons will be calculated. If unit is not specified, the units are derived from the spatial reference of the first geometry.
- cancellationToken
- The cancellation token.
Target Platforms: Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family, Windows 7, Windows 8